package org.clearjerk.model.character.status;

import java.util.List;

public class Status {
	private List<Limb> limbs;
	private int blood;
	public Status(List<Limb> limbs, List<Wound> wounds, int blood) {
		this.limbs = limbs;
		this.blood = blood;
	}
	public List<Limb> getLimbs() {
		return limbs;
	}
	public void setLimbs(List<Limb> limbs) {
		this.limbs = limbs;
	}
	public int getBlood() {
		return blood;
	}
	public void setBlood(int blood) {
		this.blood = blood;
	}
	@SuppressWarnings("unused")
	private int bloodLoss(){
		int bloodLoss = 0;
		for(Limb limb : limbs)
			bloodLoss+= limb.bloodLoss();
		return bloodLoss;
	}
	public boolean isDead(){
		//TODO
		int limbsLost = 0;
		for(Limb limb : limbs)
			if(limb.isSevered()){
				limbsLost+=1;
				if(limb.isCritical())
					return true;
			}
		return limbsLost > 1 ? true : false;
	}
	
}
